<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>饮酒申报平台</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/weui/lib/weui.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/weui/css/jquery-weui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/weui/css/main.css">

</head>

<body ontouchstart>

<header class='demos-header'>
    <h1 class="demos-title">饮酒申报平台</h1>
    <p class='demos-sub-title'>${sessionScope.user.deptName}${sessionScope.user.role}:${sessionScope.user.name}</p>
    <p class='demos-sub-title'>小酌怡情，豪饮伤身！</p>
</header>

<div class="weui-grids">
    <a href="${pageContext.request.contextPath}/apply/toApply.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_panel.png" alt="">
        </div>
        <p class="weui-grid__label">
            饮酒申报
        </p>
    </a>
    <a href="${pageContext.request.contextPath}/apply/applyList.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_calendar.png" alt="">
        </div>
        <p class="weui-grid__label">
            申报记录
        </p>
    </a>
    <c:if test="${admin==true}">
    <a href="${pageContext.request.contextPath}/apply/dealList.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_msg.png" alt="">
        </div>
        <p class="weui-grid__label">
            待批申请(<span style="color: red">${count}</span>)
        </p>
    </a>
    <a href="${pageContext.request.contextPath}/user/getAllUsers.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/user.png" alt="" style="width: 28px;height: 28px;">
        </div>
        <p class="weui-grid__label">
           人员管理
        </p>
    </a>
    </c:if>
    <a href="${pageContext.request.contextPath}/user/getUserInfo.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_dialog.png" alt="">
        </div>
        <p class="weui-grid__label">
            个人信息
        </p>
    </a>
    <a href="${pageContext.request.contextPath}/plain.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_article.png" alt="">
        </div>
        <p class="weui-grid__label">
            审批流程
        </p>
    </a>
    <a href="dialog.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_dialog.png" alt="">
        </div>
        <p class="weui-grid__label">
            通信录
        </p>
    </a>
    <a href="${pageContext.request.contextPath}/logout.do" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="${pageContext.request.contextPath}/static/weui/images/icon_nav_city.png" alt="">
        </div>
        <p class="weui-grid__label">
            退出系统
        </p>
    </a>
</div>

<div class="weui-footer">
    <p class="weui-footer__links">
        <a href="#" class="weui-footer__link">吴忠消防中队-饮酒申报系统</a>
    </p>
    <p class="weui-footer__text">Copyright © 2020-2021 www.nxxskj.com    <a href="http://beian.miit.gov.cn/">宁ICP备18001310号-2</a></p>
</div>

<style>
    .weui-footer {
        margin: 25px 0 10px 0;
    }
</style>


<script src="${pageContext.request.contextPath}/static/weui/lib/jquery-2.1.4.js"></script>
<script src="${pageContext.request.contextPath}/static/weui/lib/fastclick.js"></script>
<script>
    $(function () {
        FastClick.attach(document.body);
    });
</script>
<script src="${pageContext.request.contextPath}/static/weui/js/jquery-weui.js"></script>

</body>

</html>
